module.exports = app => {
    const news = require("../controllers/news.controller.js");
    var router = require("express").Router();
    router.get('/', news.getNews);
    router.get('/', news.getNewsNum);

    app.use('/api/news', router);
}